package sctu.edu.java.year2016.team01.zhuming.day20160530.Practice;

/**
 * Created by Administrator on 2016/5/31.
 */
public class JuXing extends Shape{
    public double chang;
    public double kuan;
    public JuXing(double chang,double kuan){

        this.chang=chang;
        this.kuan=kuan;
    }

    @Override
    public String getname() {
        return super.getname();
    }

    public double getarea(){

        return chang*kuan;
    }
}
